package New;

import java.util.Arrays;

public class ReverseString {
    public static void main(String[] args) {
        String s = "abcd";
       String [] c = s.split("");
       StringBuilder sb = new StringBuilder();
        for (int i = c.length-1;i>=0;i--){
            sb.append(c[i]);
        }
            System.out.println(sb.toString());

    }
}
